package com.chookss.view;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.chookss.R;
import com.chookss.view.listener.ShareDialogListener;

import butterknife.BindView;
//投屏提示
public class ForScreenInitDialog extends BaseDialog {


    @BindView(R.id.tvSure)
    TextView tvSure;
    private Context context;
    private ShareDialogListener listener=null;
    public ForScreenInitDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_for_screen_init;
    }

    @Override
    protected void init(View view) {
        initCenter(0.7f);
        tvSure.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (listener != null) {
                    listener.onClick();
                }
                dismiss();
            }
        });
    }
    public ForScreenInitDialog(@NonNull Context context, ShareDialogListener listener) {
        super(context);
        this.context = context;
        this.listener=listener;
    }
}
